<template>
    <div>
        <div class="crumbs">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item> <i class="el-icon-lx-complaints"></i>投诉管理</el-breadcrumb-item>
                <el-breadcrumb-item>投诉历史</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="container">
            <el-table
                :data="tableData"
                border
                class="table"
                ref="multipleTable"
                header-cell-class-name="table-header"
               
            >
                <el-table-column prop="user_name" label="客户名称"></el-table-column>
                <el-table-column prop="complaints.waybill_number" label="货运单编号"></el-table-column>
                <el-table-column prop="complaints.complaint_content" label="投诉内容"></el-table-column>
                <el-table-column prop="complaints.complaint_date" label="投诉日期"></el-table-column>
                <el-table-column prop="complaints.dispose" label="是否处理"></el-table-column>
                <el-table-column prop="complaints.dispose_date" label="处理日期"></el-table-column>
                <el-table-column prop="complaints.dispose_result" label="处理结果"></el-table-column>
                <el-table-column prop="complaints.report" label="是否回告"></el-table-column>
                <el-table-column prop="complaints.report_date" label="回告日期"></el-table-column>
            </el-table>
            
        </div>
    </div>
</template>

<script>
export default {
    name: 'TopicManage',
    data() {
        return {
            categoryList: [],
            query: {
               
            },

            pageparm: {
                currentPage: 1,
                pageSize: 5,
                total: 5
            },
            tableData: [],
            current: '',
            multipleSelection: [],
            delList: [],
            editVisible: false,
            id: "",
            waybill: ''
        };
    },
    created() {
        this.id = localStorage.getItem('id');
        console.log(this.id);
        this.findCategory();
    },
    methods: {
        //查询所有数据
        findCategory() {
            this.$axios
                .post('/api/complaints/findById/' + this.id, this.query)
                .then((res) => {
                    console.log(res);
                    if (res.data.code == 200) {
                        this.tableData = res.data.data;
                    }
                })
                .catch((err) => {
                    console.log(err);
                });
        },
        
    },
}
</script>

<style scoped>
.handle-box {
    margin-bottom: 20px;
}
.el-input {
    position: relative;
    font-size: 14px;
    display: inline-block;
    width: 200px !important;
}
.handle-select {
    width: 120px;
}

.handle-input {
    width: 300px;
    display: inline-block;
}
.table {
    width: 100%;
    font-size: 14px;
}
.red {
    color: #ff0000;
}
.mr10 {
    margin-right: 10px;
}
.table-td-thumb {
    display: block;
    margin: auto;
    width: 40px;
    height: 40px;
}
</style>
